package io.gitee.mojingjiao.day03;

public class DemoObject {
    public static void main(String[] args) {
        Teacher teacher=new Teacher();
        Student student=new Student();
        Teacher.eat();
        Teacher.lesson();
        Student.eat();
        Student.study();
    }
}
class Teacher{
    private String name;
    private int age;
    private  String content;

    public Teacher() {
    }

    public Teacher(String name, int age, String content) {
        this.name = name;
        this.age = age;
        this.content = content;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public static void eat(){
        System.out.println("年龄为34的黄超杰老师正在吃饭....");
    }
    public static void lesson(){
        System.out.println("年龄为34的黄超杰老师正在亢奋的讲着“俄罗斯方块游戏”。。。");
    }
}
class Student{
private String name;
private  int age;
private  String content;

    public Student() {
    }

    public Student(String name, int age, String content) {
        this.name = name;
        this.age = age;
        this.content = content;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public static void  eat(){
        System.out.println(" 年龄为16的xx同学正在吃饭....");
}
    public static void study(){
        System.out.println("年龄为16的xx同学正在一脸懵逼的听着“面向对象的知识”。。。");
}

}